<template>
  <span class="sorter">
    <ri i="sort" title="排序"></ri>
    <el-select size="mini" :modelValue="modelValue" placeholder="请选择" @input="$emit('update:modelValue', $event)"  @change="$emit('change', $event)">
      <el-option v-for="o in options" :key="o.value" :label="o.label" :value="o.value"></el-option>
    </el-select>
  </span>
</template>

<script>
export default {
  props: ["options", "modelValue"],
};
</script>

<style lang="stylus">
.sorter

  .el-select
    width 8vw
    margin-left 0.5vw
</style>